import request from '@/utils/request'

export function selectAll(data) {
  return request({
    url: 'api/appGroup/selectPages',
    method: 'get',
    data
  })
}

export function add(data) {
  return request({
    url: 'api/appGroup/add',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/appGroup/del',
    method: 'post',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/appGroup/edit',
    method: 'post',
    data
  })
}
export function checkAppGroupData(data) {
  return request({
    url: 'api/appGroup/checkAppGroupData',
    method: 'post',
    data
  })
}
export function refreshGroup(data) {
  return request({
    url: 'api/appGroup/refreshGroup',
    method: 'post',
    data
  })
}
export default { selectAll, add, del, edit, checkAppGroupData, refreshGroup }
